#include "stdafx.h"
#include <LitMetaData.h>
#include <LitMetaGroup.h>
#include <LitMetaObject.h>

namespace Lit
{
	MetaData::MetaData( MetaGroup * parent ):mParent(parent){}
	MetaData::MetaData( MetaGroup * parent, const String &name ):mParent(parent),Named(name){}
	MetaData::MetaData( MetaGroup * parent, const String &name, const String& val ){ Named::operator=(name); mValue=val; }
	MetaData::MetaData( const MetaData& rk ):mParent(rk.mParent),Named(rk), mValue(rk.mValue){}
	MetaData::~MetaData(){}

	MetaData& MetaData::operator= (const MetaData& rk)
	{
		mParent = rk.mParent;
		mName = rk.mName;
		mValue = rk.mValue;
		return *this;
	}
		
	const MetaGroup * MetaData::parent( ) const{ return mParent; }
	MetaGroup * MetaData::parent( ){ return mParent; }

	const String& MetaData::getValue( ) const{ return mValue; }
	
	void MetaData::setParent( MetaGroup * val ){ mParent = val; }
	void MetaData::setValue( const String & val ){ mValue = val; }
};